<script lang="ts" setup>
import { onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { useStore } from '~/stores/user';
import { getToken } from '~/utils/cache';

const store = useStore();
const router = useRouter();
onMounted (() => {
    console.log("not token");
    
    if (!getToken()) {
        router.push("/login");
    }
});
</script>

<template>
    <div>
        home
    </div>
</template>

<style lang="scss">
</style>